#include <iostream>
#include <algorithm>
using namespace std;

int main()
{
	string t;
	cin>>t;
	string tp=reverse(t.begin(),t.end());
	cout<<endl<<tp;
	return 0;
}
